
/* First created by JCasGen Tue Nov 10 00:39:52 UYST 2009 */
package org.idtem.component.analisissintactico;

import org.apache.uima.jcas.JCas;
import org.apache.uima.jcas.JCasRegistry;
import org.apache.uima.cas.impl.CASImpl;
import org.apache.uima.cas.impl.FSGenerator;
import org.apache.uima.cas.FeatureStructure;
import org.apache.uima.cas.impl.TypeImpl;
import org.apache.uima.cas.Type;
import org.apache.uima.cas.impl.FeatureImpl;
import org.apache.uima.cas.Feature;
import org.apache.uima.jcas.tcas.Annotation_Type;

/** 
 * Updated by JCasGen Tue Nov 10 23:03:49 UYST 2009
 * @generated */
public class SyntacticSentence_Type extends Annotation_Type {
  /** @generated */
  protected FSGenerator getFSGenerator() {return fsGenerator;}
  /** @generated */
  private final FSGenerator fsGenerator = 
    new FSGenerator() {
      public FeatureStructure createFS(int addr, CASImpl cas) {
  			 if (SyntacticSentence_Type.this.useExistingInstance) {
  			   // Return eq fs instance if already created
  		     FeatureStructure fs = SyntacticSentence_Type.this.jcas.getJfsFromCaddr(addr);
  		     if (null == fs) {
  		       fs = new SyntacticSentence(addr, SyntacticSentence_Type.this);
  			   SyntacticSentence_Type.this.jcas.putJfsFromCaddr(addr, fs);
  			   return fs;
  		     }
  		     return fs;
        } else return new SyntacticSentence(addr, SyntacticSentence_Type.this);
  	  }
    };
  /** @generated */
  public final static int typeIndexID = SyntacticSentence.typeIndexID;
  /** @generated 
     @modifiable */
  public final static boolean featOkTst = JCasRegistry.getFeatOkTst("org.idtem.component.analisissintactico.SyntacticSentence");
 
  /** @generated */
  final Feature casFeat_SentenceReference;
  /** @generated */
  final int     casFeatCode_SentenceReference;
  /** @generated */ 
  public int getSentenceReference(int addr) {
        if (featOkTst && casFeat_SentenceReference == null)
      jcas.throwFeatMissing("SentenceReference", "org.idtem.component.analisissintactico.SyntacticSentence");
    return ll_cas.ll_getRefValue(addr, casFeatCode_SentenceReference);
  }
  /** @generated */    
  public void setSentenceReference(int addr, int v) {
        if (featOkTst && casFeat_SentenceReference == null)
      jcas.throwFeatMissing("SentenceReference", "org.idtem.component.analisissintactico.SyntacticSentence");
    ll_cas.ll_setRefValue(addr, casFeatCode_SentenceReference, v);}
    
  
 
  /** @generated */
  final Feature casFeat_BaseSyntacticFunctionReference;
  /** @generated */
  final int     casFeatCode_BaseSyntacticFunctionReference;
  /** @generated */ 
  public int getBaseSyntacticFunctionReference(int addr) {
        if (featOkTst && casFeat_BaseSyntacticFunctionReference == null)
      jcas.throwFeatMissing("BaseSyntacticFunctionReference", "org.idtem.component.analisissintactico.SyntacticSentence");
    return ll_cas.ll_getRefValue(addr, casFeatCode_BaseSyntacticFunctionReference);
  }
  /** @generated */    
  public void setBaseSyntacticFunctionReference(int addr, int v) {
        if (featOkTst && casFeat_BaseSyntacticFunctionReference == null)
      jcas.throwFeatMissing("BaseSyntacticFunctionReference", "org.idtem.component.analisissintactico.SyntacticSentence");
    ll_cas.ll_setRefValue(addr, casFeatCode_BaseSyntacticFunctionReference, v);}
    
  



  /** initialize variables to correspond with Cas Type and Features
	* @generated */
  public SyntacticSentence_Type(JCas jcas, Type casType) {
    super(jcas, casType);
    casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());

 
    casFeat_SentenceReference = jcas.getRequiredFeatureDE(casType, "SentenceReference", "org.idtem.component.freeling.Sentencia", featOkTst);
    casFeatCode_SentenceReference  = (null == casFeat_SentenceReference) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_SentenceReference).getCode();

 
    casFeat_BaseSyntacticFunctionReference = jcas.getRequiredFeatureDE(casType, "BaseSyntacticFunctionReference", "org.idtem.component.analisissintactico.BaseSyntacticFunction", featOkTst);
    casFeatCode_BaseSyntacticFunctionReference  = (null == casFeat_BaseSyntacticFunctionReference) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_BaseSyntacticFunctionReference).getCode();

  }
}



    